class Dog:  # 组合
    def __init__(self):
          self.foods = []

dog1 = Dog()
print(dog1.foods)

class Dog2(list):  # 继承
     pass
dog2 = Dog2()
print('dog2=', dog2)
